import request from '@/utils/request'

/**
 * 变更责任人
 * @param {*} data 
 * @returns 
 */
export function personChange(data) {
  return request({
    url: '/api/v1/ctmShopReformTaskFollowUp/changePerson',
    method: 'PUT',
    data
  })
}

/**
 * 获取详情
 * @param {*} id
 * @returns
 */
export function detailMonthTask(id) {
  return request({
    url: `/api/v1/ctmShopReformTaskFollowUp/${id}`,
    method: 'GET'
  })
}

/**
 * 编辑
 * @param {*} data
 * @returns
 */
export function editMonthTask(data) {
  return request({
    url: '/api/v1/ctmShopReformTaskFollowUp',
    method: 'PUT',
    data
  })
}
/**
 * 能否完结月任务
 * @param {*} id 
 * @returns 
 */
export function isUnCompleteWeekTask(id) {
  return request({
    url: `/api/v1/ctmShopReformTaskFollowUp/isUnCompleteWeekTask/${id}`,
    method: 'GET'
  })
}